<?php 
        include 'mysql.php';
		$newMessage = @$_POST['newMessage'];
		$name = @$_POST['name'];
		$pwd = @$_POST['password'];
		if($newMessage != "" && $name != "" && $pwd != "")
		{
				
				$sql_2 = "insert into studentmessage(message,studentID) values ('".$newMessage."','".$name."')";
				$messageReulst = mysqli_query($link,$sql_2);
				if($messageReulst)
				{
					print_r($messageReulst);
					echo '提交成功';
					
				}
		}
		else
		{
			echo "访问失败";
		}
			
		?>